package com.jv.spring.importresource.scan;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
@Setter
@Getter
public class Dept {
	private String deptName;

	@Autowired
	private City city;

	public Dept(){
		System.out.println("Dept init");
	}

	public void initMethod(){
		System.out.println("Spring init method");
	}

	@PostConstruct
	public void postInit(){
		System.out.println("postInit");
	}
}
